function renderTabbar(pathname) {
    let arr=[
        {
        title:'跑步',
        Path:'./run.html',
        },
        {
            title:'骑行',
            Path:'./ride.html',
        },
        {
            title:'课程训练',
            Path:'./course.html',
        }
    ]
    let html= `  
    <div class="hed_box df jcsb aic">
    ${arr.map(v=>{
        return` <a href="${v.Path}" class="hed_box1 ${v.Path ===`./${pathname}.html`&&'active'}">${v.title}</a>` 
     }).join('')}
    </div>
`
let header= document.createElement('header');
header.className='hed df jcc '
header.innerHTML=html
document.body.prepend(header)
}
// 导出渲染函数
module.exports= renderTabbar